<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Settings</title>
    </h:head>
    <h:body>
        
        <p:layout fullPage="true">
            <p:layoutUnit position="west" size="900" collapsible="false" style="border: 0px">
                <h1 style="color: red">Welcome in</h1>
                <br/>
                <h:graphicImage value="/images/Simbolo_Meteocal.png" width="850" ></h:graphicImage>
            </p:layoutUnit>
            <p:layoutUnit position="center" style="border: 0px">
               
                <h:form>
                    <br/>
                    <br/>
                    <p:outputLabel value="In this page you can change your personal data."/>
                    <br/>
                    <br/>
                    <br/>
                    <p:outputLabel id="type" value="Your Calendar is #{userBean.visibility}"/>
                    <br/>
                    <br/>
                    <p:commandButton value="Change visibility" action="#{userBean.changeVisibility()}" update="type"/>
                    <br/>  
                    <br/>   
                    If your calendar is set to be public, every user will be able to access it and see your schedule.<br/>
                    However if an event is set as private the other user will see only the time slot occupied, but won't be able to access the details of that event.<br/>
                    <br/>
                    If your calendar is set to be private no user other than you will be able to see your schedule.<br/>
                    <br/>
                    No matter what calendar you choose you can be invited to any kind of event.<br/>
                    No matter what calendar you choose if a user search your email, your email will be shown but if your calendar is private the user will not be able to reach your schedule.<br/>
                </h:form>
            </p:layoutUnit>
            <p:layoutUnit position="south" size="60" style="border: 0px" >
                <p:button value="turn back" outcome="homepage" />
            </p:layoutUnit>
        </p:layout>
        
        
    </h:body>
</html>

